<template>
	<view class="zhibo1">
		<view>
			<view class="body2">
				<image class='imgall' :src="data.logo_image" mode="" />
				<view class="text">
					<view class="text_1 ">{{data.name}}</view>
					<view class="text_2 ">{{data.synopsis}}</view>
					<view class="text_3">
						<view class="" style="position: relative;bottom: -10px;">
							<text>{{data.study}}</text> <text style='font-weight: 600; color: black;'>人已预约</text>
						</view>
						<image :src="src" v-if="type==3" />
						<image :src="src1" v-if="type==1" />
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props: ['data','type'],
		data() {
			return {
				src: require('@/static/img/4805.png'),
				src1: require('@/static/img/dyy.png'),
			}
		},
		methods: {
			submit(a, b) {
				console.log('测试')
				uni.navigateTo({
					url: `/pages/previewdetails/lookback?type=${b+1}`
				});
				// if (b == 0) {
				// 	uni.navigateTo({
				// 		url: '/pages/previewdetails/previewdetails'
				// 	});
				// } else {
				// 	uni.navigateTo({
				// 		url: `/pages/previewdetails/lookbacktype=${b}`
				// 	});
				// }

			},
		}
	}
</script>

<style lang="scss" scoped>
	.zhibo1 {
		.xian2 {
			height: 1rpx;
			background: #EFEFEF;
			margin-top: 25rpx;
			margin-bottom: 25rpx;
			opacity: 1;
			border-radius: 0px;
		}

		.body2 {
			display: flex;
			justify-content: space-between;
			width: 100%;

			.hh {
				overflow: hidden;
				text-overflow: ellipsis;
				display: -webkit-box;
				-webkit-line-clamp: 1;
				-webkit-box-orient: vertical;
			}

			.imgall {
				width: 240rpx;
				height: 160rpx;
			}

			.text {
				margin-left: 15rpx;
				width: 63%;
				position: relative;

				.text_1 {
					font-size: 32rpx;
					font-family: Source Han Sans CN;
					font-weight: bold;
					line-height: 33rpx;
					color: #131314;
					opacity: 1;
					overflow: hidden;
					text-overflow: ellipsis;
					white-space: nowrap;
				}

				.text_2 {
					width: 90%;
					font-size: 28rpx;
					font-weight: 400;
					line-height: 30px;
					color: #91969A;
					overflow: hidden;
					text-overflow: ellipsis;
					white-space: nowrap;

				}

				.text_3 {
					display: flex;
					justify-content: space-between;
					position: absolute;
					bottom: 0;
					font-size: 24rpx;
					font-family: Source Han Sans CN;
					font-weight: 400;
					color: #131314;
					opacity: 1;
					width: 100%;

					image {
						width: 140rpx;

						height: 58rpx;
					}

					text {
						color: rgb(255, 64, 64);
					}
				}

			}
		}

	}
</style>
